mm/memory: Use exception ip to search exception tables
authorJiaxun Yang <jiaxun.yang@flygoat.com>
Fri, 2 Feb 2024 12:30:28 +0000 (12:30 +0000)
committerSalvatore Bonaccorso <carnil@debian.org>
Thu, 6 Mar 2025 06:21:29 +0000 (07:21 +0100)
commitd10a882222d08f1632c8dda95ea4d1d2bceedbc4
tree55f4f3afd979b89e2242a679af5fd638e100a375
parent52e9256eb50b7fecda3cbee530defb8c63394d4b
mm/memory: Use exception ip to search exception tables

Origin: https://git.kernel.org/linus/8fa5070833886268e4fb646daaca99f725b378e9
Bug-Debian: https://bugs.debian.org/1093200
Bug-Debian: https://bugs.debian.org/1087809
Bug-Debian: https://bugs.debian.org/1086028

On architectures with delay slot, instruction_pointer() may differ
from where exception was triggered.

Use exception_ip we just introduced to search exception tables to
get rid of the problem.

Fixes: 4bce37a68ff8 ("mips/mm: Convert to using lock_mm_and_find_vma()")
Reported-by: Xi Ruoyao <xry111@xry111.site>
Link: https://lore.kernel.org/r/75e9fd7b08562ad9b456a5bdaacb7cc220311cc9.camel@xry111.site/
Suggested-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Jiaxun Yang <jiaxun.yang@flygoat.com>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Gbp-Pq: Topic bugfix/all
Gbp-Pq: Name mm-memory-Use-exception-ip-to-search-exception-table.patch
mm/memory.c